DateTimeEditors for WinRT
Specifying the Selected Date

You can specify the time and date of a C1DateTimeSelector control by setting the SelectedDate property in XAML or code.

In XAML

To specify the initially selected date, edit your XAML markup to resemble the following:

Markup
Copy Code
<Xaml:C1DateTimeSelector SelectedDate="1932, 10, 12/>

In Code

C#
Copy Code
c1DTS1.SelectedDate = new DateTime( 1932, 10, 12 );

Visual Basic
Copy Code
c1DTS1.SelectedDate = New DateTime(1932, 10, 12)
See Also

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback